def make_album(musician, abum, count=None):
	dict = {"musician": musician, "abum": abum}
	if count:
		dict['count'] = count
	return dict

# dict = make_album('周杰伦', '范特西')
# print(dict)
# dict = make_album('周杰伦', '叶惠美', 10)
# print(dict)

while True:
	musician = input("\n请录入歌手（按q退出）： ")
	if musician == 'q':
		break
	album = input("请录入专辑（按q退出）： ")
	if album == 'q':
		break
	count = input("请录入歌曲数（按q退出）： ")
	if count == 'q':
		break
	dict = make_album(musician, album, count)
	print(dict)
